import requests

from common.get_header import get_header
from config import URL


# 获取岗位/部门
class YYgetdepartment(object):
    url = URL + "user/"
    header = get_header()

    @classmethod
    def yy_get_department(cls):
        resp = requests.get(url=cls.url, headers=cls.header)
        return resp


if __name__ == '__main__':
    res = YYgetdepartment.yy_get_department()
    print(res.json())
